#!/usr/bin/env python3
# -*- coding: utf-8 -*-


from django.db import models


# EIP系统操作日志
class EipLogModel(models.Model):

    username = models.CharField("操作者", max_length=20, default="",
                                help_text='操作者')

    current_date = models.DateTimeField('时间', auto_now_add=True)
    content = models.CharField("日志内容", max_length=100, default="",
                               help_text="日志内容")

    def __str__(self):
        return str(self.username)


# 内部文档系统操作日志
class DocLogModel(models.Model):

    username = models.CharField("操作者", max_length=20, default="",
                                help_text='操作者')

    current_date = models.DateTimeField('时间', auto_now_add=True)
    content = models.CharField("日志内容", max_length=100, default="",
                               help_text="日志内容")

    def __str__(self):
        return str(self.username)
